package com.youease.chris.model.proxy
{
	import com.youease.chris.model.vo.LayerData;
	import com.youease.chris.model.vo.TileData;
	
	import org.puremvc.as3.interfaces.IProxy;
	import org.puremvc.as3.patterns.proxy.Proxy;
	
	public class LayerDataProxy extends Proxy implements IProxy
	{
		public function LayerDataProxy(data:LayerData)
		{
			super(data.name, data);
		}
		
		public function addTile(tile:TileData):void {
			layerData.tiles.push(tile);
		}
		
		public function get layerData():LayerData {
			return this.data as LayerData;
		}
	}
}